package com.authority.framework.web.service;

import com.authority.framework.base.service.BaseService;
import com.authority.framework.base.entity.DTreeEntity;
import com.authority.framework.web.domain.SysMenuEntity;

import java.util.List;
import java.util.Map;

/**
 * @program: authority
 * @description: 菜单 service 层
 * @author: Mr.Yan
 * @create: 2018-11-15 13:46
 **/
public interface SysMenuService extends BaseService<SysMenuEntity> {
	/**
	 * 查询用户的菜单
	 * @param userId
	 * @return
	 */
	public List<SysMenuEntity> findListByUserId(Map paramMap);

	/**
	 * 查询菜单树集
	 * @return
	 */
	List<DTreeEntity> findDTreeData();

	/**
	 * 查询角色菜单
	 * @param roleId
	 * @return
	 */
	List<SysMenuEntity> findListByRoleId(Integer roleId);

	/**
	 * 查询所有菜单
	 * @param ajaxMap
	 * @return
	 */
	List<SysMenuEntity> findMenuList(Map<String, Object> ajaxMap);
}
